package com.wiz.mapper;


import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.wiz.base.BaseDao;
import com.wiz.entity.Roles;
import com.wiz.entity.User;
import com.wiz.util.PageView;


public interface UserMapper{
	/**
	 * 返回分页后的数据
	 * @param pageView
	 * @param t
	 * @return
	 */
	public List<User> query(PageView pageView,User t);
	/**
	 * 返回所有数据
	 * @param t
	 * @return
	 */
	public List<User> queryAll(User t);
	public void deleteById(@Param(value="userId")String userId);
	public void modify(User t);
	public User getUserById(@Param(value="userId")String userId);
	public void add(User t);
	
	public int countUser(@Param(value="userName")String userName,@Param(value="userPassword")String userPassword);
	
	public User querySingleUser(@Param(value="userName")String userName);
	
	public Roles findbyUserRole(@Param(value="userId")String userId);
}
